#include <iostream>
#include "operator.h"
using namespace std;

int main(int argc, char const *argv[]){
    Operator op;
    double res;
    op.setOperator('+');
    op.setParameter(1,2);
    if(op.result(res)){
        cout<<"res="<<res<<endl;
    }else{
        cout<<"error"<<endl;
    }
    
    return 0;
}